Mobile device, program and method for controlling the same

ABSTRACT

A mobile phone according to an embodiment includes an acceleration sensor, a communication unit, and a controller. The acceleration sensor detects acceleration value. The communication unit performs communication. When determining that a moving state changes to a stopped state based on the acceleration value detected by the acceleration sensor, the controller is configured to cause power of the communication unit to turn on.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a National Stage of PCT international applicationSer. No. PCT/JP2014/062753 filed on May 13, 2014 which designates theUnited States, incorporated herein by reference, and which is based uponand claims the benefit of priority from Japanese Patent Application No.2013-105439 filed on May 17, 2013, the entire contents of which areincorporated herein by reference.

FIELD

The present disclosure relates to a mobile device, and a program and amethod for controlling the mobile device.

BACKGROUND

There is a mobile device that performs communication by a plurality ofcommunication methods (for example, refer to Japanese Patent ApplicationLaid-open No. 2009-303234).

SUMMARY

A mobile device according to an embodiment comprises: an accelerationsensor configured to detect acceleration value; a communication unitconfigured to perform communication; and a controller configured tocause power of the communication unit to turn on when the controllerdetermines that a moving state has changed to a stopped state based onthe acceleration value detected by the acceleration sensor.

A mobile device according to an embodiment comprises: an accelerationsensor configured to detect acceleration value; a communication unitconfigured to perform communication, and a controller configured tocause power of the communication unit to turn on when the controllerdetermines that a stopped state has changed to a moving state based onthe acceleration value detected by the acceleration sensor.

A mobile device according to an embodiment comprises: an accelerationsensor configured to detect acceleration value; a communication unitconfigured to perform communication; and a controller configured tocontrol power of the communication unit when the acceleration valuedetected by the acceleration sensor satisfies a predetermined condition.

A computer program product according to an embodiment having computerinstructions, stored on a non-transitory computer readable storagemedium, for enabling a computer of a mobile device comprising anacceleration sensor configured to detect acceleration and acommunication module configured to perform communication executing thecomputer instructions to perform operations comprises: causing themobile device to execute turning off power of the communication unitwhen it is determined that a stopped state has changed to a moving statebased on the acceleration value detected by the acceleration sensor.

A computer program product according to an embodiment having computerinstructions, stored on a non-transitory computer readable storagemedium, for enabling a computer of a mobile device comprising anacceleration sensor configured to detect acceleration and acommunication module configured to perform communication executing thecomputer instructions to perform operations comprising: causing themobile device to execute turning on power of the communication unit whenit is determined that a moving state has changed to a stopped statebased on the acceleration value detected by the acceleration sensor.

A method for controlling a mobile device comprising an accelerationsensor configured to detect acceleration value and a communication unitconfigured to perform communication according to an embodiment,comprises turning off power of the communication unit when it isdetermined that a stopped state has changed to a moving state based onthe acceleration value detected by the acceleration sensor.

A method for controlling a mobile device comprising an accelerationsensor configured to detect acceleration value and a communication unitconfigured to perform communication according to an embodiment,comprises turning on power of the communication unit when it isdetermined that a moving state has changed to a stopped state based onthe acceleration value detected by the acceleration sensor.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram of a configuration of a mobile phone accordingto an embodiment of some embodiments.

FIG. 2 is a schematic graphical representation of a result detected byan acceleration sensor according to an embodiment of some embodiments.

FIG. 3 is an exemplary screen for setting permission for searching for abase station in each state according to an embodiment of someembodiments.

FIG. 4 is an explanatory flowchart of a flow of operation of a mobilephone according to an embodiment of some embodiments.

FIG. 5 is an explanatory flowchart of a flow of operation of a mobilephone according to an embodiment of some embodiments.

DESCRIPTION OF EMBODIMENTS

Embodiments of the present disclosure will be described in detail withreference to the drawings. As an example of an electronic apparatus, amobile phone 1 will be described below.

As illustrated in FIG. 1, the mobile phone 1 includes a display unit 11,an operation part 12, a receiver 13, a microphone 14, a communicationunit 15, an acceleration sensor 16, a storage 17, and a controller 18.

The display unit 11 includes a display device, such as a liquid crystaldisplay or an organic electro-luminescence panel. The display unit 11displays, for example, a letter, an image, a symbol, or a figure.

The operation part 12 includes a plurality of buttons and are operatedby a user. The operation part 12 may include a single button.

The receiver 13 converts a sound signal transmitted by the controller 18into a sound so as to output the sound.

The communication unit 15 includes an antenna and an RF circuit unit.The communication unit 15 performs communication by a communicationmethod corresponding to each of a plurality of wireless communicationstandards. The communication unit 15 enables communication by acommunication standard for a cellular phone, such as 2G, 3G, and 4G, orby a wireless LAN system. The communication unit 15 enablescommunication by a wireless communication system that is the wirelessLAN system and conforms to IEEE 802.11, such as a wireless communicationsystem of the Wi-Fi (registered trademark). The communication unit 15may perform communication by a wireless communication of WiMAX(registered trademark). The antennas and the RF circuit units aredisposed corresponding to each of the plurality of communicationmethods. An embodiment in which the communication unit 15 performs thecommunication by the Wi-Fi, will be described.

The acceleration sensor 16 detects a direction and magnitude ofacceleration acting on the mobile phone 1 so as to output a detectedresult to the controller 18. The acceleration sensor 16 is a 3G(three-dimension) type that detects the acceleration value in an X-axisdirection, a Y-axis direction, and a Z-axis direction.

The acceleration sensor 16 includes, for example, a piezo-resistancetype or an electrostatic capacitance type, but is not limited to these.For example, the acceleration sensor 16 may include, for example, apiezoelectric element (piezoelectric type), a micro electro mechanicalsystems (MEMS) type with a heat detecting type, a servo type that movesa movable coil and performs restoring by a feedback current, a straingauge type that measures, with a strain gauge, a strain caused byacceleration.

The storage 17 is used, for example, for calculation processing by thecontroller 18, and includes, for example, a memory. The storage 17stores one or a plurality of applications that operates inside themobile phone 1. The storage 17 may also serve as a detachable externalmemory.

The controller 18 controls the entire mobile phone 1 and includes, forexample, a central processing unit (CPU) or a micro-processing unit(MPU).

Processing on a result detected by the acceleration sensor 16, by thecontroller 18, will be described.

As illustrated in FIG. 2, as a result detected by the accelerationsensor 16, acceleration value in the X-axis direction (A in FIG. 2),acceleration value in the Y-axis direction (B in FIG. 2), accelerationvalue in the Z-axis direction (C in FIG. 2), and a vector value combinedby the individual acceleration value (D in FIG. 2) are transmitted tothe controller 18. The controller 18 performs logging to the resultantvector value. The controller 18 analyzes data to which the logging hasbeen performed and determines a state of the mobile phone 1. The storage17 stores the data to which the logging has been performed.

The controller 18 uses an acceleration pattern in order to determine thestate of the mobile phone 1. The acceleration pattern is, for example,stored in the storage 17 in advance. The acceleration pattern isassociated with each of a stopped state and a plurality of movingstates. This acceleration pattern is a pattern that has been extractedby previously measuring what kind of acceleration pattern ischaracteristically detected by the acceleration sensor 16, for example,in a case where the mobile phone 1 is in the stopped state, in a casewhere the user having the mobile phone 1 has been walking so as to move,or in a case where the user has ridden a bicycle so as to move.According to an embodiment, for example, the acceleration pattern isstored in the storage 17 in advance for each of the stopped state andthe plurality of moving states. The acceleration pattern is stored so asto correspond to the data of the above resultant vector value to whichthe logging has been performed. The controller 18 compares the data ofthe above resultant vector value to which the logging has beenperformed, with the acceleration pattern so as to determine the state ofthe mobile phone 1.

The controller 18 may determine, as the stopped state, a case where theacceleration value detected by the acceleration sensor 16 is less than apredetermined value, instead of an acceleration pattern in the stoppedstate. The controller 18 may determine, as the stopped state, a casewhere the data of the above resultant vector value to which the logginghas been performed, does not correspond to any one of the plurality ofmoving states, instead of the acceleration pattern in the stopped state.

The mobile phone 1 according to an embodiment has a configuration thatdetermines the state of the mobile phone 1 so as to search for apreferable base station. The configuration that searches for thepreferable base station will be described below.

Based on the acceleration value detected by the acceleration sensor 16,when determining that the state of the mobile phone 1 has changed fromthe moving state to the stopped state, the controller 18 controls andcauses the communication unit 15 to search for the base station (accesspoint) corresponding to the Wi-Fi. Meanwhile, based on the accelerationvalue detected by the acceleration sensor 16, when determining that thestate of the mobile phone 1 is in the moving state, the controller 18controls to prevent the communication unit 15 from searching for thebase station corresponding to the Wi-Fi. A control method forcontrolling to prevent the communication unit 15 from searching for thebase station corresponding to the Wi-Fi includes a control method forcontrolling to prevent a search function from being performed and amethod for turning off power of the communication unit 15. Thecontroller 18 has a function that controls the power of thecommunication unit 15.

More specifically, the controller 18 determines whether the mobile phone1 is in any one of the stopped state and the plurality of moving states,based on the acceleration value detected by the acceleration sensor 16.

For example, the controller 18 determines any one of the stopped stateand a first moving state to a fifth moving state to be described later.The stopped state is, for example, a state where the mobile phone 1 hasbeen placed or a state where the user having the mobile phone 1 stays.The controller 18 can determine the stopped state in a case where theacceleration value has not been detected by the acceleration sensor 16,in a case where the acceleration value detected by the accelerationsensor 16 is less than the predetermined value, or in a case where thedata of the above resultant vector value to which the logging has beenperformed does not correspond to any one of the moving states.

The controller 18 determines any one of the first moving state to thefifth moving state to be described later so as to be able to determine ariding state on a bicycle, in a car, or in a train, or a walking state.The first moving state is a state where the user who uses the mobilephone 1 has been moving without riding in a vehicle, namely, the walkingstate. The second moving state is a state where the user has been movingby the car. The third moving state is a state where the user has beenmoving by the bicycle. The fourth moving state is a state where the userhas been moving by the train. The fifth moving state is a state wherethe user has been moving by using other moving means.

When determining any one of the first moving state to the fifth movingstate as a determined state, the controller 18 controls to prevent thecommunication unit 15 from searching for the base station correspondingto the Wi-Fi. Since the mobile phone 1 does not search for the basestation corresponding to the Wi-Fi in the moving state, powerconsumption can be reduced when compared with that in a case where thesearch is constantly performed.

The controller 18 has a function that controls the power of thecommunication unit 15 when the acceleration value detected by theacceleration sensor 1 satisfies a predetermined condition. Whendetermining that the stopped state has changed to any one of the movingstates, the controller 18 controls and turns off the power of thecommunication unit 15. When the power of the communication unit 15 isturned off, the communication unit 15 cannot search for the base stationcorresponding to the Wi-Fi. Since the mobile phone 1 turns off the powerof the communication unit 15 in the moving state, the power consumptioncan be reduced when compared with that in a state where the power isconstantly on.

The controller 18 determines whether the state of the mobile phone 1 haschanged. When determining that the state of the mobile phone 1 haschanged from the moving state to the stopped state, the controller 18controls and causes the communication unit 15 to search for the basestation corresponding to the Wi-Fi.

The controller 18 has a function that controls the power of thecommunication unit 15 when the acceleration value detected by theacceleration sensor 1 satisfies a predetermined condition. Whendetermining that any one of the moving states has changed to the stoppedstate, the controller 18 controls and turns on the power of thecommunication unit 15. When the power of the communication unit 15 isturned on, the communication unit 15 can search for the base stationcorresponding to the Wi-Fi. Since the mobile phone 1 turns on the powerof the communication unit 15 in the stopped state, the power consumptioncan be reduced when compared with that in the case where the power isconstantly on.

When the base station corresponding to the Wi-Fi is detected, thecontroller 18 attempts communication connection to the base station.When the base station detected by the search is a base stationregistered in the storage 17, the mobile phone 1 may be controlled so asto automatically establish the communication connection. When the basestation detected by the search is a base station to which connection hasbeen previously established, the mobile phone 1 may be controlled so asto automatically establish the communication connection. In this case,the storage 17 stores information on the base station to which theconnection has been previously established.

The storage 17 stores information for identifying the base station. Theinformation for identifying the base station includes, for example, aservice set identifier (SSID). The storage 17 may store an access keythat is used for establishing the communication connection to the storedbase station.

The controller 18 according to an embodiment repeatedly searches for thebase station until the communication connection is established. However,an embodiment is not limited to this. For example, when the base stationcorresponding to the Wi-Fi has not been detected during a predeterminedtime (for example, one minute), the controller 18 may stop searching forthe base station. A control method for controlling the communicationunit 15 and stopping searching for the base station corresponding to theWi-Fi, includes a method for controlling to prevent the search functionfrom being performed, and a method for turning off the power of thecommunication unit 15.

As described above, when the user in the stopped state has become in astate where data communication by the Wi-Fi is easily performed, themobile phone 1 searches for the base station corresponding to the Wi-Fi.Therefore, since the mobile phone 1 searches for the base stationcorresponding to the Wi-Fi when the user is in the state where the datacommunication by the Wi-Fi is easily performed, convenience of the usercan be improved. Since the mobile phone 1 searches for the base stationcorresponding to the Wi-Fi when the user is in the state where the datacommunication by the Wi-Fi is easily performed, the power consumptioncan be reduced when compared to that in the case where the search isconstantly performed.

When determining that the mobile phone 1 has changed from the movingstate to the stopped state, the controller 18 controls and causes thecommunication unit 15 to search for the base station corresponding tothe Wi-Fi. The controller 18 is not limited to an embodiment. Based onany one of the plurality of moving states, the controller 18 may controlthe communication unit 15 in detail.

Based on the acceleration value detected by the acceleration sensor 16,when determining that the walking state has changed to the stoppedstate, the controller 18 may cause the base station corresponding to theWi-Fi to be searched. The walking state is the first moving state asdescribed above.

Based on the acceleration value detected by the acceleration sensor 16,when determining that the riding state has changed to the stopped state,the controller 18 controls to prevent the base station corresponding tothe Wi-Fi from being searched. The riding state is any one of the secondmoving state, the third moving state, the fourth moving state, and thefifth moving state.

When the vehicle in which the user has been riding stops, possibilitythat the vehicle restarts or the user walks so as to move, is high.Accordingly, possibility that the user who uses the mobile phone 1performs the data communication is low from in the second moving stateto in the fifth moving state. When the riding state has changed to thestopped state, the mobile phone 1 controls to prevent the base stationfrom being searched. Therefore, the power consumption can be reducedwhen compared with that in the case where the search for the basestation is constantly performed in the stopped state.

The mobile phone 1 searches for the base station corresponding to theWi-Fi when the walking state has changed to the stopped state. When thewalking state has changed to the stopped state, possibility that theuser has arrived at a destination is high. Since the mobile phone 1searches for the base station when the walking state has changed to thestopped state, convenience can be improved.

The stopped state is defined as the state where the mobile phone 1 hasbeen placed. However, an embodiment is not limited to this. For example,when satisfying a predetermined condition, the mobile phone 1 maydetermine the stopped state, and control to cause the communication unit15 to search for the base station corresponding to the Wi-Fi. Thepredetermined condition is a nearly stopped state, namely, a state wherethe acceleration value detected by the acceleration sensor 16 is a smallamount (less than the predetermined value).

For example, in a case where the user holds the mobile phone 1 by hand,even when the user thinks that the mobile phone 1 stays, a small amountof acceleration is sometimes detected by the acceleration sensor 16.When the controller 18 determines that the state where the accelerationvalue detected by the acceleration sensor 16 is a small amount is thestopped state, the mobile phone 1 determines the state where the userholds the mobile phone 1 by hand as the stopped state so as to searchfor the base station. The mobile phone 1 can improve the convenience ofthe user.

When the acceleration value detected by the acceleration sensor 16remains less than the predetermined value during a certain period oftime (for example, five seconds), namely, maintains the stopped stateduring the certain period of time, the mobile phone 1 may control tocause the communication unit 15 to search for the base stationcorresponding to the Wi-Fi.

In the case where the mobile phone 1 maintains the stopped state duringthe certain period of time, possibility that the user have arrived atthe destination is higher than that in a case where the mobile phone 1does not maintain the stopped state during the certain period of time.The mobile phone 1 searches for the base station corresponding to theWi-Fi in accordance with behavior of the user. The mobile phone 1 canimprove the convenience of the user.

The user may set whether the controller 18 searches for the base stationcorresponding to the Wi-Fi in a case of a change to each of the movingstates.

In other words, the storage 17 associates, and stores, each of the firstmoving state to the fifth moving state with setting information onwhether the base station corresponding to the Wi-Fi is searched. Thecontroller 18 may display a setting screen illustrated in FIG. 3 on thedisplay unit 11 so as to receive a setting whether the base stationcorresponding to the Wi-Fi is searched in each of the moving states.

In an example illustrated in FIG. 3, when the mobile phone 1 determinesthat the user is in the stopped state, the controller 18 controls tocause the communication unit 15 to search for the base stationcorresponding to the Wi-Fi. Meanwhile, when determining that the user isin the moving states of walking, the bicycle, the car, the train, and inother moving states, the mobile phone 1 controls to prevent thecommunication unit 15 from searching for the base station correspondingto the Wi-Fi.

As described above, the mobile phone 1 can search for the base stationcorresponding to the Wi-Fi when riding in the vehicle in accordance witha user's request.

A flow of operation of the mobile phone 1 will be described withreference to a flowchart illustrated in FIG. 4. The followingdescription in which determination of a state is performed in real time,will be given. However, the mobile phone 1 is not limited to anembodiment, and may determine the state at a predetermined timeinterval.

The mobile phone 1 starts a predetermined application by an operation ofthe user, starts measurement of the acceleration value in accordancewith an operation of a measurement start, and completes the measurementof the acceleration value in accordance with an operation of ameasurement completion. However, the mobile phone 1 is not limited to anembodiment. For example, the mobile phone 1 may start and complete themeasurement of the acceleration value at start time and completion timedesignated by the timer, respectively. For example, the mobile phone 1may start the measurement of the acceleration value when the power ofits own device is turned on from an off state so that the start iscompleted. For example, the mobile phone 1 may continue the measurementof the acceleration value until the power of the own device is turnedoff. For example, the mobile phone 1 may continue the measurement of theacceleration value while a function for measuring the acceleration valueis on.

At Step ST101, the controller 18 determines whether the state is thestopped state or the moving state, based on the result detected by theacceleration sensor 16.

At Step ST102, the controller 18 determines whether the stopped statehas changed to the moving state. When the determination is YES, thecontroller 18 proceeds to Step ST103. When the determination is NO, thecontroller 18 proceeds to Step ST101.

At Step ST103, the controller 18 determines whether the power of thecommunication unit 15 has been turned on. When the determination is YES,the controller 18 proceeds to Step ST104. When the determination is NO,the controller 18 completes the processing of the control flow.

At Step ST104, the controller 18 turns off the power of thecommunication unit 15. When the processing at Step ST104 has beencompleted, the controller 18 completes the processing of the controlflow.

According to an embodiment, based on the acceleration value detected bythe acceleration sensor 16, when it is determined that the state of themobile phone 1 has changed from the stopped state to the moving state,the mobile phone 1 controls the power of the communication unit 15 andturns off the power of the communication unit 15.

Therefore, when the user becomes in the moving state where it isdifficult to perform the data communication by the Wi-Fi, the mobilephone 1 turns off the power of the communication unit 15. When the powerof the communication unit 15 is turned off, the mobile phone 1 canreduce the power consumption of the mobile phone 1. When the power ofthe communication unit 15 is turned off, the mobile phone 1 cannotsearch for the base station corresponding to the Wi-Fi. Since the basestation corresponding to the Wi-Fi is not searched in the moving state,the mobile phone 1 can improve the convenience of the user.

A flow of operation of the mobile phone 1 will be described withreference to a flowchart illustrated in FIG. 5. The followingdescription in which determination of a state is performed in real time,will be given. However, the mobile phone 1 is not limited to anembodiment, and may determine the state at a predetermined timeinterval.

At Step ST201, the controller 18 determines whether the state is thestopped state or the moving state, based on the result detected by theacceleration sensor 16.

At Step ST202, the controller 18 determines whether the moving state haschanged to the stopped state. When the determination is YES, thecontroller 18 proceeds to Step ST203. When the determination is NO, thecontroller 18 proceeds to Step ST201.

At Step ST203, the controller 18 determines whether the power of thecommunication unit 15 has been turned off. When the determination isYES, the controller 18 proceeds to Step ST204. When the determination isNO, the controller 18 proceeds to Step ST205.

At Step ST204, the controller 18 turns on the power of the communicationunit 15. When the processing at Step ST204 has been completed, thecontroller 18 proceeds to Step ST205.

At Step ST205, the controller 18 controls and causes the communicationunit 15 to search for the base station corresponding to the Wi-Fi.

At Step ST206, the controller 18 determines whether the base station hasbeen detected. When the determination is YES, the controller 18 proceedsto Step ST207. When the determination is NO, the controller 18 proceedsto Step ST205.

At Step ST207, the controller 18 determines whether the detected basestation has been stored in the storage 17. When the determination isYES, the controller 18 proceeds to Step ST208. When the determination isNO, the controller 18 proceeds to Step ST205. At Step ST207 in thecontrol flow, it is determined whether the detected base station hasbeen stored in the storage 17. However, the Step ST207 may be omittedand the processing may proceed to Step ST208.

At Step ST208, the controller 18 controls and causes the communicationunit 15 to attempt connecting to the detected base station by thesearch. The controller 18 controls and causes the communication unit 15to attempt connecting to the base station stored in the storage 17. Whenthe processing at Step ST208 has been completed, the controller 18proceeds to Step ST209.

At Step ST209, the controller 18 determines whether the connection tothe base station to which the connection has been attempted has beenestablished. When the determination is YES, the controller 18 completesthe processing of the control flow. When the determination is NO, thecontroller 18 proceeds to Step ST205.

As described above, according to an embodiment, based on theacceleration value detected by the acceleration sensor 16, when it isdetermined that the state of the mobile phone 1 has changed from themoving state to the stopped state, the mobile phone 1 controls the powerof the communication unit 15 and turns on the power of the communicationunit 15. Therefore, when the user becomes in the stopped state where itis easy to perform the data communication by the Wi-Fi, the mobile phone1 turns on the power of the communication unit 15. The mobile phone 1can reduce the power consumption when compared with that in the casewhere the power of the communication unit 15 is constantly on.

According to an embodiment, based on the acceleration value detected bythe acceleration sensor 16, when it is determined that the state of themobile phone 1 has changed from the moving state to the stopped state,the mobile phone 1 controls and causes the communication unit 15 tosearch for the base station corresponding to the Wi-Fi. Since the basestation corresponding to the Wi-Fi is searched in the stopped state, themobile phone 1 can improve the convenience of the user.

Embodiments according to the present disclosure have been described.However, the present disclosure is not limited to the above embodiments.An effect according to the present disclosure is not limited to thosedescribed in the above embodiments.

In the above embodiments, when determining a change to the stoppedstate, the mobile phone 1 searches for the base station corresponding tothe Wi-Fi. However, the embodiments are not limited to this. Forexample, the communication unit 15 corresponds to, for example,communication by the wireless LAN system. Based on the accelerationvalue detected by the acceleration sensor 16, when it is determined thatthe moving state has changed to the stopped state, the communicationunit 15 may be controlled so as to search for the wireless LAN system.The wireless LAN system may include, for example, a wirelesscommunication system conforming to IEEE 802.11, Bluetooth (registeredtrademark), IrDA, or near field communication (NFC).

In the above embodiments, based on the acceleration value detected bythe acceleration sensor 16, it is determined whether the state of themobile phone 1 is any one of the stopped state and the plurality ofmoving states. However, the embodiments are not limited to this. Forexample, using global positioning system (GPS), the mobile phone 1 maymeasure a position of the mobile phone 1 and determine whether themobile phone 1 is in any one of the stopped state and the plurality ofmoving states based on an amount of displacement of the mobile phone 1per unit time (predetermined time).

1. A mobile device comprising: an acceleration sensor configured todetect acceleration value; a communication unit configured to performcommunication; and a controller configured to cause power of thecommunication unit to turn on when the controller determines that amoving state has changed to a stopped state based on the accelerationvalue detected by the acceleration sensor.
 2. The mobile deviceaccording to claim 1, wherein the controller is configured to cause thepower of the communication unit to turn on, and controls and causes thecommunication unit to search for a base station when the controllerdetermines that the moving state has changed to the stopped state basedon the acceleration value detected by the acceleration sensor.
 3. Themobile device according to claim 2, wherein when the communication unitsearches for a base station that has been stored, the controllerattempts connection to the searched base station.
 4. The mobile deviceaccording to claim 2, wherein the controller is configured to be able todetermine a walking state as the moving state, and when the controllerdetermines that the walking state has changed to the stopped state basedon the acceleration value detected by the acceleration sensor, thecontroller is configured to cause the base station to be searched. 5.The mobile device according to claim 2, wherein the controller isconfigured to be able to determine a riding state in a vehicle as themoving state, and when the controller determines that the riding statehas changed to the stopped state based on the acceleration valuedetected by the acceleration sensor, the controller is configured toprevent the base station from being searched.
 6. A mobile devicecomprising: an acceleration sensor configured to detect accelerationvalue; a communication unit configured to perform communication, and acontroller configured to cause power of the communication unit to turnon when the controller determines that a stopped state has changed to amoving state based on the acceleration value detected by theacceleration sensor.
 7. The mobile device according to claim 6, whereinthe communication unit is configured to perform the communication by awireless LAN system.
 8. A mobile device comprising: an accelerationsensor configured to detect acceleration value; a communication unitconfigured to perform communication; and a controller configured tocontrol power of the communication unit when the acceleration valuedetected by the acceleration sensor satisfies a predetermined condition.9. A computer program product having computer instructions, stored on anon-transitory computer readable storage medium, for enabling a computerof a mobile device comprising an acceleration sensor configured todetect acceleration and a communication module configured to performcommunication executing the computer instructions to perform operationscomprising: causing the mobile device to execute turning off power ofthe communication unit when it is determined that a stopped state haschanged to a moving state based on the acceleration value detected bythe acceleration sensor.
 10. A computer program product having computerinstructions, stored on a non-transitory computer readable storagemedium, for enabling a computer of a mobile device comprising anacceleration sensor configured to detect acceleration and acommunication module configured to perform communication executing thecomputer instructions to perform operations comprising: causing themobile device to execute turning on power of the communication unit whenit is determined that a moving state has changed to a stopped statebased on the acceleration value detected by the acceleration sensor. 11.A method for controlling a mobile device comprising an accelerationsensor configured to detect acceleration value and a communication unitconfigured to perform communication, the method comprising turning offpower of the communication unit when it is determined that a stoppedstate has changed to a moving state based on the acceleration valuedetected by the acceleration sensor.
 12. A method for controlling amobile device comprising an acceleration sensor configured to detectacceleration value and a communication unit configured to performcommunication, the method comprising turning on power of thecommunication unit when it is determined that a moving state has changedto a stopped state based on the acceleration value detected by theacceleration sensor.